﻿using CrawlerApp.Infrastructure.Enums;
using CrawlerApp.Infrastructure.Events;
using Newtonsoft.Json;
using System;

namespace CrawlerApp.Services.Interceptors.Events
{
    public class InterceptorEvent : IntegrationEvent
    {
        [JsonProperty]
        public InterceptorEventType Type { get; private set; }
        [JsonConstructor]
        public InterceptorEvent():base() { }
        [JsonConstructor]
        public InterceptorEvent(Guid guid, DateTime createDateTime) : base(guid, createDateTime) { }
        [JsonConstructor]
        public InterceptorEvent(Guid guid, DateTime createDateTime, InterceptorEventType type) : base(guid, createDateTime)
        {
            Type = type;
        }
    }
}
